.template-card {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.template-card .ant-card-head {
  padding: 12px 16px;
  min-height: 48px;
}

.template-card-title {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.template-name {
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.template-card-content {
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.template-description {
  flex: 1;
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.template-variables {
  margin-bottom: 12px;
  min-height: 24px;
}

.template-variables .ant-tag {
  font-size: 11px;
  padding: 0 6px;
  margin: 2px;
}

.template-stats {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.stat-item {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.template-card .ant-card-actions {
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.template-card .ant-card-actions > li {
  margin: 4px 0;
}

.template-card .ant-card-actions > li > button {
  height: 28px;
  font-size: 12px;
}